package com.erli.exchange.common.sg.config;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@XmlRootElement(name = "datasource")
public class DatasourceInfo {
	@XmlAttribute
	private String jdbcUrl;

	@XmlAttribute
	private String user;

	@XmlAttribute
	private String password;

	@XmlTransient
	public String getJdbcUrl() {
		return jdbcUrl;
	}

	@XmlTransient
	public String getUser() {
		return user;
	}

	@XmlTransient
	public String getPassword() {
		return password;
	}

}
